package com.train.gateway.configuration;

import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GatewayConfig {
    /*@Bean
    public RouteLocator customRoute(RouteLocatorBuilder routeLocatorBuilder){
        RouteLocatorBuilder.Builder routes = routeLocatorBuilder.routes();
        routes.route("order-server", (r)->r.path("/order").uri("http://localhost:8082"))
                .route("pay-server",(r)->r.path("/pay").uri("http://localhost:8080")).build();
        return routes.build();
    }*/
}
